package org.ch00.test03.demo01;

/**
 * DotNet老师
 *
 * @author ZQX
 * @date 2025-02-28
 */
public class DotNetTeacher{

    /**
     * 姓名
     */
    private String name;
    /**
     * 从属学校
     */
    private String school;

    // 构造方法
    public DotNetTeacher() {

    }

    public DotNetTeacher(String name, String school) {
        this.name = name;
        this.school = school;
    }

    // setter/getter 方法
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    /**
     * 授课
     */
    public void teach() {
        System.out.println("打开VS...");
        System.out.println("讲课...");
    }

    /**
     * 介绍
     */
    public void jieShao() {
        System.out.println("大家好，我是 " + this.name);
    }

}
